{assign var=__url value="/admin/static/"}
<h1>Статические страницы <a class="ibutton add" href="./add/" title="Добавить"> </a></h1>

{assets css="list"}

<table class="plainlist">
<thead>{capture assign=tablehead}<th>#</th><th>Путь</th><th>Заголовок</th><th>Содержание</th><th>&nbsp;</th>{/capture}{$tablehead}</thead>
<tbody>
{foreach from=$list item=i name=list}
<tr>
<th>{$i.id}</th>
<td><a href="/{$i.tag}/" target="_blank">{$i.tag}</a></th>
<td>{$i.title}</td>
<td>{$i.body|@mb_substr:0:100|escape}...</td>
<td>{strip}
<a href="{$__url}edit/?id={$i.id}" class="ibutton edit" title="edit"></a>
<a href="{$__url}remove/?id={$i.id}" class="ibutton delete confirm" title="delete"></a>
{if $smarty.foreach.list.iteration == 1}
<a href="{$__url}add/" class="ibutton add" title="add"></a>
{/if}
{*<a class="ibutton copy" title="on/off"></a>
<a class="ibutton up" title="higher priority"></a>
<a class="ibutton down" title="lower priority"></a>*}
{/strip}</td>
</tr>
{foreachelse}
<tr>
<th>*</th>
<td>&nbsp;</th>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><a href="/{$__url}/add/" class="ibutton add" title="add"></a></td>
</tr>
{/foreach}
</tbody>
<tfoot>{$tablehead}</tfoot>
</table>
